<%@ page import="uiux4.SessionData" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC>
<html lang=ko>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel='stylesheet' type='text/css' href='./css/main.css'/>
	<title>main.jsp</title>
</head>
<body bgcolor="black">

<jsp:useBean id="in" class="uiux4.SessionData" scope="session"/>
<jsp:useBean id="as" class="uiux4.SessionData" scope="session"/>
<%
	request.setCharacterEncoding("UTF-8");
	String asi = "aside.jsp";
	String inc ="contents.jsp";
	if(request.getParameter("inc")!=null)
	{
		inc = request.getParameter("inc");
	}
	else
	{
		String inc2 = in.getInc();
		if(inc2 != null && inc2 !="")
		{
			inc = inc2;
		}
	}
	
	if(as.getAd() != null && as.getAd() !="")
	{
		if(as.getAd().equals("스포츠"))
			asi = "./jsp/aside1.jsp";
		else if(as.getAd().equals("관광"))
			asi = "./jsp/aside1.jsp";
		else if(as.getAd().equals("맛집"))
			asi = "./jsp/aside1.jsp";
		else
			asi = "aside.jsp";
	}
%>
<div id='main'>
	<a href='main.jsp'>
		<div id='top'>
			<div id='top_text'>BLACK HOUSE</div>
		</div>
	</a>
	<div id='center'>
		<div id='nav'>
			<%@include file='nav.jsp' %>
		</div>
		<div id='contents'>
			<jsp:include page = '<%=inc%>'/>
		</div>
		<div id='aside'>
			<jsp:include page = '<%=asi%>'/>
		</div>
	</div>
	<div id='bottom'>
		<%@include file='bottom.jsp' %>
	</div>
</div>
</body>
</html>